package com.sunny.hp.common.util;


import org.springframework.context.support.MessageSourceAccessor;
public class PropertiesUtil {

	

	 static MessageSourceAccessor messageSourceAccessor = null;
	 public MessageSourceAccessor getMessageSourceAccessor() { 
		 return messageSourceAccessor;
	 }




	 public void setMessageSourceAccessor(MessageSourceAccessor messageSourceAccessor) {
		 PropertiesUtil.messageSourceAccessor = messageSourceAccessor;
	 }	

	 public static String getMessage(String key) {
		 //System.out.println("messageSourceAccessor ==>" + messageSourceAccessor);
		 return messageSourceAccessor.getMessage(key);
	 }
}


